<?php

namespace App\Repository\Repositories;

use App\Repository\Repositories\Interfaces\OrderQualificationBidRepository;
use App\Repository\Models\OrderQualificationBid;

/**
 * Class OrderQualificationBidRepositoryEloquent.
 *
 * @package namespace App\Repository\Repositories;
 */
class OrderQualificationBidRepositoryEloquent extends BaseRepository implements OrderQualificationBidRepository
{
    /**
     * 搜索
     * @var array
     */

    protected $fieldSearchable = [
        'status'=>'in',
        'service_code',
        'user_id',
        'shop_id',
        'project_name',
        'invoice_id',
        'created_at'=>'between',
    ];

    /**
     * 多字段联合模糊查询,前端查询字段名keyword
     * @var array
     */
    public $fieldFuzzySearch = [
        'service_code',
        'project_name',
    ];

    /**
     * 可关联查询的字段
     */
    public $withAllow = [
        'user',
        'shop',
        'service_detail',
    ];
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return OrderQualificationBid::class;
    }
}
